﻿

using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.Process;
[ProtoContract]
public class ProcessScData:ProcessBaseData
{
    
    [ProtoMember(2)]
    public long EquipId { get; set; }
    /// <summary>
    /// 0 :手动, 1：本地自动, 2 ： 联机
    /// </summary>
    [ProtoMember(4)]
    public int Mode { get; set; }
    /// <summary>
    /// 错误码
    /// </summary>
    [ProtoMember(5)]
    public int ErrorCode { get; set; }
    /// <summary>
    /// 0:未联机；1: 等待中（联机无任务）;  2:动作中(联机有任务）；
    /// </summary>
    [ProtoMember(6)]
    public int State { get; set; }
    /// <summary>
    /// 有无货物
    /// </summary>
    [ProtoMember(7)]
    public int IsExistTray { get; set; }
    /// <summary>
    /// 0:货叉1作业中；1:货叉1作业 完成（报警任务暂停）  
    /// </summary>
    [ProtoMember(8)]
    public int JobState1 { get; set; }
    /// <summary>
    /// 01 入口站台  02 出口站台 03 直出口（摆渡）  04 重新安置（移库） 05 回原点   09火警任务
    /// </summary>
    [ProtoMember(9)]
    public int JobType1 { get; set; }
    /// <summary>
    /// 任务号
    /// </summary>
    [ProtoMember(10)]
    public int JobNumber1 { get; set; }
    /// <summary>
    /// 取货排
    /// </summary>
    [ProtoMember(11)]
    public int Take_Bank1 { get; set; }
    /// <summary>
    /// 取货列
    /// </summary>
    [ProtoMember(12)]
    public int Take_Bay1 { get; set; }
    /// <summary>
    /// 取货层
    /// </summary>
    [ProtoMember(13)]
    public int Take_Level1 { get; set; }
    /// <summary>
    /// 取货站台
    /// </summary>
    [ProtoMember(14)]
    public int Take_Station1 { get; set; }
    /// <summary>
    /// 放货排
    /// </summary>
    [ProtoMember(15)]
    public int Set_Bank1 { get; set; }
    /// <summary>
    /// 放货列
    /// </summary>
    [ProtoMember(16)]
    public int Set_Bay1 { get; set; }
    /// <summary>
    /// 放货层
    /// </summary>
    [ProtoMember(17)]
    public int Set_Level1 { get; set; }
    /// <summary>
    /// 放货站台
    /// </summary>
    [ProtoMember(18)]
    public int Set_Station1 { get; set; }
    /// <summary>
    /// 是否连接 记录时间>60s，未连接
    /// </summary>
    [ProtoMember(20)]
    public bool IsConnect { get; set; }
    /// <summary>
    /// 任务类型 1 入库 2出库
    /// </summary>
    [ProtoMember(21)]
    public int ActionType { get; set; }

    [ProtoMember(22)]
    public int JobState2 { get; set; }

    /// <summary>
    /// 任务号
    /// </summary>
    [ProtoMember(24)]
    public int JobNumber2 { get; set; }
    /// <summary>
    /// 取货排
    /// </summary>
    [ProtoMember(25)]
    public int Take_Bank2 { get; set; }
    /// <summary>
    /// 取货列
    /// </summary>
    [ProtoMember(26)]
    public int Take_Bay2 { get; set; }
    /// <summary>
    /// 取货层
    /// </summary>
    [ProtoMember(27)]
    public int Take_Level2 { get; set; }
    /// <summary>
    /// 取货站台
    /// </summary>
    [ProtoMember(28)]
    public int Take_Station2 { get; set; }
    /// <summary>
    /// 放货排
    /// </summary>
    [ProtoMember(29)]
    public int Set_Bank2 { get; set; }
    /// <summary>
    /// 放货列
    /// </summary>
    [ProtoMember(30)]
    public int Set_Bay2 { get; set; }
    /// <summary>
    /// 放货层
    /// </summary>
    [ProtoMember(31)]
    public int Set_Level2 { get; set; }
    /// <summary>
    /// 放货站台
    /// </summary>
    [ProtoMember(32)]
    public int Set_Station2 { get; set; }
    /// <summary>
    /// x2是否存在物品
    /// </summary>
    [ProtoMember(33)]
    public int IsExistTray2 { get; set; }
    /// <summary>
    /// 1启动 0停止
    /// </summary>
    [ProtoMember(34)]
    public int Active { get; set; }

}
